<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/goodsApply.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			
		}
	});
});
</script>
<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<div class="widget" style="margin:0px;">
	<div class="widget-content">
		<div class="table-title">
			<form id="editForm">
			<input type="hidden" id="goodsApply_code" name="code" value="${(goodsApply.code)!''}"/>
			<input type="hidden" id="goodsApply_au" name="au" value="${(goodsApply.au)!''}"/>
			<table class="table table-bordered animate2 fadeInUp" style="width:40%; text-align:left;">
				<tr>
					<td class="table-left" style="width:80px;">申请机构</td>
					<td>${(goodsApply.ocn)!''}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						申请人：${(goodsApply.an)!''}</td>
				</tr>
				<tr>
					<td class="table-left">标题</td>
					<td>${(goodsApply.title)!''}</td>
				</tr>
				<tr>
					<td class="table-left">申请类型</td>
					<td><#if goodsApply.sort == 1>消耗品 <#elseif goodsApply.sort == 2>固定资产</#if></td>
				</tr>
				<tr>
					<th>领用人</th>
					<td>${(goodsApply.an)!''}</td>
				</tr> 
				<tr>
					<th colspan="1">密码</th>
					<td><input id="pwd" name="pwd" type="password"/></td>
				</tr>
			</table>
			<table style="width:40%; margin-top:-1px;" class="table table-bordered animate2 fadeInUp">
				<thead>
					<tr>
						<th style="text-align:center;">商品名称</th>
						<th style="text-align:center; width:62px;">数量</th>
						<!-- <th style="text-align:center; width:62px;">单位</th> -->
					</tr>
				</thead>
				<tbody id="applyDetailListBody">
					<#if ((goodsApply.adList)?? && goodsApply.adList?size > 0)>
						<#list goodsApply.adList as item>
						<tr class="rep">
							<td style="text-align:center;">${(item.gn)!''}</td>
							<td>${(item.count)!''}</td>
							<!-- <td>${(item.unit)!''}</td> -->
						</tr>
						</#list>
					</#if>
				</tbody>  
				<tr>
					<td colspan="3" style="text-align:center;">
						<#if goodsApply.status?? && goodsApply.status == 2>
							<a href="javascript:;" class="btn btn-info" onclick="javascript: save_goodsApply(); return false;">&nbsp;已领完</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<#elseif goodsApply.status?? && goodsApply.status == 1>
						<font style="color:green;">已确认领用</font>
						</#if>
						<a href="javascript:;" class="btn btn-primary" onclick="javascript: sys_load_handle('goodsApply');return false;">&nbsp;取&nbsp;&nbsp;消</a>
					</td>
				</tr>
				
			</table>
			</form>
		</div>
	</div>
</div>